﻿namespace Library.Navigation
{
    using System;
    using System.Net;
    using System.Windows;
    using System.Windows.Controls;
    using System.Windows.Documents;
    using System.Windows.Ink;
    using System.Windows.Input;
    using System.Windows.Media;
    using System.Windows.Media.Animation;
    using System.Windows.Shapes;
    using System.Collections.Generic;

    public class NavigationMapper
    {
        public NavigationMapper()
        {
            this.Mappings = new List<NavigationMapItem>();
        }

        public List<NavigationMapItem> Mappings { get; private set; }

        public void AddMapping(string pageRealPath, object mappedSource)
        {
            this.AddMapping(pageRealPath, mappedSource, null);
        }

        public void AddMapping(string pageRealPath, object mappedSource, Type parameterType)
        {
            var mapItem = new NavigationMapItem(pageRealPath, mappedSource, parameterType);
            this.Mappings.Add(mapItem);
        }
    }
}
